<template>
  <div class="chat">
    <page-editor v-model="editorContent" />
  </div>
</template>

<script setup lang="ts">
  import { ref } from 'vue'
  import pageEditor from '@/components/page-editor/page-editor.vue'
  import { onMounted } from 'vue'

  const editorContent = ref<string>('')
  // 模拟 ajax 异步获取内容
  onMounted(() => {
    setTimeout(() => {
      editorContent.value = '<p>模拟 Ajax 异步设置内容</p>'
    }, 1500)
  })
</script>

<style scoped lang="scss"></style>
